package com.slingshot.identitysdk.common.button

import android.content.Context
import android.support.v4.content.ContextCompat
import android.support.v7.widget.AppCompatButton
import android.util.AttributeSet
import com.slingshot.identitysdk.R

/**
 * @author liu shuai
 * 描述：Button Base
 */
open class BaseButton(context: Context, attributeSet: AttributeSet) :
    AppCompatButton(context, attributeSet) {

    init {
        init()
    }

    private fun init() {
        setTextColor(
            ContextCompat.getColor(
                context,
                R.color.color_theme_white
            )
        )
        background = context.getDrawable(R.drawable.button_selector)
    }
}